<#assign base=request.contextPath>
<!DOCTYPE html> 
<html>
	<head>
		<title>${title}</title>
		<meta charset="utf-8">
		<#include "common/reference.ftl" />
		<#include "common/am.reference.ftl" />
		<#include "common/star.reference.ftl" />
	</head>
	<body class="${configs["skinName"]}">
		<div class="page-content">
			<div class="row">
			<#include "common/breadcrumb.ftl">
				<form id="form" role="form" class="form-horizontal" method="post" action="${base}/${form_action}">
					<div class="col-xs-12">
						<div class="widget-box">
							<div class="widget-body">
								<input type="hidden" name="orderNo" id="orderNo" value="${orderNo}">
								<div class="alert alert-warning">
									<strong>提示!</strong>
									<strong style="color:#dd514c;">出现红框</strong>的表示不能为空
								</div>
								<div class="form-group">
									<label class="col-sm-3 control-label no-padding-right">
										星级
									</label>
									<div class="col-sm-6">
										<div id="divStar"></div>
										<input id="star" name="star" type="hidden" class="rating" required>
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-3 control-label no-padding-right">
										评价内容
									</label>
									<div class="col-sm-6">
										<textarea id="content" name="content" rows="6" class="form-control"></textarea>
									</div>
								</div>
								<div class="clearfix form-actions">
									<div class="col-md-offset-3 col-md-9">
										<button id="btnSubmit" class="btn btn-info" type="submit">
											<i class="fa fa-check bigger-110"></i>
											提 交
										</button>
									</div>
								</div>
							</div>
						</div>
					</div>
				</form>
			</div>	
		</div>
		<script type="text/javascript">
		$(function(){
			$('#divStar').jRate({
				width:'30',
				height:'30',
				backgroundColor:'#eaeaea',
				startColor:'#fcd109',
				endColor:'#fcd109',
				precision:1,
				onChange:function(rating){
					$('#star').val(rating);
				}
			});
			$('#form').validator();
		})
		</script>
	</body>
</html>